package org.sfnelson.sk.client.event;

import java.util.Date;

public abstract class Event {

	public final Long id;
	public final Date date;
	
	public Event(Long id, Date date) {
		this.id = id;
		this.date = date;
	}
	
	public boolean equals(Object other) {
		if (!(other instanceof Event)) {
			return false;
		} else {
			return ((Event) other).id.equals(id);
		}
	}
	
	public int hashCode() {
		return id.hashCode();
	}
}
